package com.mall4j.cloud.product.model;

import com.mall4j.cloud.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity(name ="spu")
@Table(name = "spu")
public class SpuHistory extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "spu_id")
    private Long spuId;

    @Column(name = "name")
    private String name;

    @Column(name = "main_img_url")
    private String mainImgUrl;

    @Column(name = "price_fee")
    private Long priceFee;
    @Column(name = "create_time")
    private Date create_time;
    public Long getSpuId() {
        return spuId;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMainImgUrl() {
        return mainImgUrl;
    }

    public void setMainImgUrl(String mainImgUrl) {
        this.mainImgUrl = mainImgUrl;
    }

    public Long getPriceFee() {
        return priceFee;
    }

    public void setPriceFee(Long priceFee) {
        this.priceFee = priceFee;
    }

    @Override
    public String toString() {
        return "SpuHistory{" +
                "spuId=" + spuId +
                ", name='" + name + '\'' +
                ", mainImgUrl='" + mainImgUrl + '\'' +
                ", priceFee=" + priceFee +
                ", create_time=" + create_time +
                '}';
    }
}
